#include <QCoreApplication>
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
    int A,b,D;
cout<<"vvedi cislo:";
cin>>A;
b=A;
A %=100;
A %=10;
cout<<A<<endl;
b %= 100;
D = b/10;
cout<<D<<endl;
getch();
return 0;
}
